﻿using System;
using System.Collections.Generic;
using System.Collections;
using System.Text;
using System.Data.SqlClient;
using ECCSystem.EntityClass;

namespace ECCSystem.BizRule
{
	class ClsKindOfTemplet
	{
		DataAccess.ClsKindOfTemplet objDAMC = new ECCSystem.DataAccess.ClsKindOfTemplet();
		public ClsKindOfTemplet()
        { }
        //Get all MailCategory records list
        public object GetList()
        {
            return objDAMC.GetKindOfTemplet();
        }

		public string AddKindOfTemplet(ArrayList objArr)
        {
			SqlTransaction objTran = ClsCommon.gObjConn.BeginTransaction();
			return objDAMC.AddKindOfTemplet(objArr, objTran);
        }
		public string DeleteKindOfTemplet(string strID)
        {
			return objDAMC.DeleteKindOfTemplet(strID);
        }

		public string DeleteKindOfTemplet(ArrayList strID)
		{
			SqlTransaction objTran = ClsCommon.gObjConn.BeginTransaction();
			return objDAMC.DeleteKindOfTemplet(strID, objTran);
		}

		public string UpdateKindOfTemplet(KindOfTempletEntity objEntity)
		{
			return objDAMC.UpdateKindOfTemplet(objEntity);
		}
	}
}
